/*
 * @Description:
 * @Version: 2.0
 * @Autor: wiz
 * @Date: 2024-04-22 09:57:29
 * @LastEditors: wiz
 * @LastEditTime: 2024-04-22 10:01:17
 */
export class T_errDet {
  private d: Array<{ title: string; content: string }> = [];

  public add(p: { title: string; content: string }) {
    if (this.d.length > 5) {
      this.d.pop();
    }
    this.d.push(p);
  }

  public getList(): Array<{ title: string; content: string }> {
    return this.d;
  }
}
export interface I_errDet extends T_errDet {}
